/**
 * Copyright (C) 2018-2019
 * All rights reserved, Designed By www.joolun.com
 */
 import request from '@/utils/request'

 //分页查询
 export function getPage(page,size) {
    const data ={
        "page":page,
        "size":size
    }
    console.log(data)
    return request({
        url: '/aomosound/registration/getRegistrationRaceTrackList',
        method: 'post',
        data: data
    })
 }
 
 //按照id删除信息
 export function tableDataDelete(id) {
     console.log("api"+id)
    return request({
        url: '/aomosound/registration/registrationDeleteById',
        method: 'get',
        params: {
            "id":id
        }
    })
 }
 
//添加信息
export function tableInsert(data) {
   return request({
       url: '/aomosound/registration/registrationInsert',
       method: 'post',
       data:{
           "raceTrackName":data.raceTrackName,
           "raceTrackDescribe":data.raceTrackDescribe
       }
   })
}


//修改赛道信息
//添加信息
export function tableUpdate(data) {
    return request({
        url: '/aomosound/registration/registrationUpdate',
        method: 'post',
        data:{
            "id":data.id,
            "raceTrackName":data.raceTrackName,
            "raceTrackDescribe":data.raceTrackDescribe
        }
    })
 }




